<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->get('/home', 'HomeController@home');
    $router->any('/api/{action}', 'ApiController@index');
    $router->resource('shops', 'ShopController');
    $router->resource('config', 'ConfigController');
    $router->resource('user/bingshi', 'UserBingshiController');
    $router->resource('user/dangan', 'UserDanganController');
    $router->resource('user/wenjuan', 'UserWenjuanController');
    $router->resource('users', 'UserController');
    $router->resource('auth/users', 'AdminUserController');
});
